﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RacePlatformer;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Dwarfs.Manager;

namespace Dwarfs.Screens
{
   public class IntroScreen : Screen
    {
       public IntroScreen(MainGame maingame)
           : base(maingame)
        {
        
        }
       public override void UpdateMenu()
       {
           KeyboardState currentKeyboardState = Keyboard.GetState();
           maingame.soundmanager.playBackgroundSound(this);
           if (previousKeyboardState.IsKeyDown(Keys.Enter) && currentKeyboardState.IsKeyUp(Keys.Enter))
           {
               SoundManager.stopBackgroundSound();
               maingame.currentGameState = MainGame.GameState.MENU;
           }
           previousKeyboardState = currentKeyboardState;
       }
       public override void LoadContent()
       {
           screenBackground = maingame.Content.Load<Texture2D>("screens/introScreen");
       }
    }
}
